package com.sandasai.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * Work entity. @author MyEclipse Persistence Tools
 */

public class Work implements java.io.Serializable {

	// Fields

	private Integer id;
	private Student student;
	private Worktype worktype;
	private String title;
	private String authorName;
	private String fileName;
	private Boolean verified;
	private Set marks = new HashSet(0);

	// Constructors

	/** default constructor */
	public Work() {
	}

	/** minimal constructor */
	public Work(Worktype worktype, String title, String authorName,
			String fileName) {
		this.worktype = worktype;
		this.title = title;
		this.authorName = authorName;
		this.fileName = fileName;
	}

	/** full constructor */
	public Work(Student student, Worktype worktype, String title,
			String authorName, String fileName, Boolean verified, Set marks) {
		this.student = student;
		this.worktype = worktype;
		this.title = title;
		this.authorName = authorName;
		this.fileName = fileName;
		this.verified = verified;
		this.marks = marks;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Student getStudent() {
		return this.student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public Worktype getWorktype() {
		return this.worktype;
	}

	public void setWorktype(Worktype worktype) {
		this.worktype = worktype;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthorName() {
		return this.authorName;
	}

	public void setAuthorName(String authorName) {
		this.authorName = authorName;
	}

	public String getFileName() {
		return this.fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public Boolean getVerified() {
		return this.verified;
	}

	public void setVerified(Boolean verified) {
		this.verified = verified;
	}

	public Set getMarks() {
		return this.marks;
	}

	public void setMarks(Set marks) {
		this.marks = marks;
	}

}